<template>
  <div class="title">
    <h1>Vue-Route</h1>
    <router-view></router-view>
    <router-link active-class="active" to="/Student">学生</router-link>
    <router-link active-class="active" to="/Teacher">教师</router-link>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style scoped>
.active {
  background-color: tomato;
}
</style>